using System.Collections;
using System.Collections.Generic;
using UnityEngine;

    public class HandCardMgr
    {
        public static  List<int> CurSelectedHandCardsId = new List<int>();
        public static  List<GameObject> CurSeleteIndexs = new List<GameObject>();
        public static List<GameObject> haveSelectQuestionCard = new List<GameObject>();


        /// <summary>
        /// 清除全部列表
        /// </summary>
        public static void ClearAllData()
        {
            CurSelectedHandCardsId.Clear();
            CurSeleteIndexs.Clear();
            haveSelectQuestionCard.Clear();
        }
        

        /**选卡 */
        public static void SelectCard(GameObject whichCard)
        {
            CurSeleteIndexs.Add(whichCard);
        }
        public static void SelectQuestionCard(GameObject whichCard)
        {
            haveSelectQuestionCard.Add(whichCard);
        }
        /**取消选卡 */
        public static void CancelSelectCard(GameObject whichCard)
        {
            CurSeleteIndexs.Remove(whichCard);
        }
        public static void CancelSelectQuestionCard(GameObject whichCard)
        {
            haveSelectQuestionCard.Remove(whichCard);
        }
        /**选入卡ID */
        public static void SelectCardId(int ID)
        {
            CurSelectedHandCardsId.Add(ID);
            
        }
        /**移出卡ID */
        public static void CancelSelectCardId(int ID)
        {
            CurSelectedHandCardsId.Remove(ID);
        }
    }

   


